/* 留言页面专用样式 */
.message-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

/* 留言表单区域样式 */
.message-form-section {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-form-section h4, .message-list-section h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #CCFF66;
}

/* 留言列表区域样式 */
.message-list-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
}

/* 留言项样式 */
.message-list {
    margin-top: 20px;
}

.message-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-header h5 {
    color: #CCFF66;
    font-size: 16px;
}

.message-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.message-type {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
    background-color: rgba(255, 255, 255, 0.2);
}

.message-type::before {
    content: "•";
    margin-right: 3px;
}

.message-body {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.message-reply {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.message-reply p {
    color: #e0e0e0;
    font-size: 14px;
    padding: 8px 10px;
    background-color: rgba(204, 255, 102, 0.1);
    border-radius: 4px;
    margin-top: 5px;
}

/* 筛选控件样式 */
.filter-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-controls input, .filter-controls select {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

/* 留言统计图表 */
.message-stats {
    margin-top: 30px;
}

.message-stats img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    max-width: 100%;
}

/* 提交按钮样式 */
.submit-btn {
    background: linear-gradient(135deg, #0d3221, #154a33);
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.submit-btn:hover::after {
    left: 100%;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 移动端汉堡菜单 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .main {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .message-container {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-menu ul {
        display: none;
        flex-direction: column;
    }
    
    .main-menu ul.show {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-nav {
        float: none;
    }
    
    .banner {
        height: 300px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .message-container {
        grid-template-columns: 1fr;
    }
    
    .banner {
        height: 400px;
    }
}

/* 类型选择器和属性选择器示例 */
input[type="checkbox"] {
    margin-right: 8px;
}

.message-item:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.08);
}

/* 伪元素应用 */
.form-group label::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background-color: #CCFF66;
    transition: width 0.3s ease;
}

.form-group label:hover::after {
    width: 100%;
}